module.exports = (sequelize, DataTypes) => sequelize.define(
    'tb_item',
    {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true
        },
        title: DataTypes.STRING,
        sell_point: DataTypes.STRING,
        price: DataTypes.STRING,
        num: DataTypes.INTEGER,
        barcode: DataTypes.STRING,
        image: DataTypes.STRING,
        cid: DataTypes.INTEGER,
        status: DataTypes.STRING,
        created: DataTypes.STRING,
        updated: DataTypes.STRING
    },
    {
        timestamps: false, // 去除created_at和updated_at
        tableName: 'tb_item'
    }
);
